﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PPAP.Web.SearchReport
{
    public partial class test : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            try
            {

            SendEmailToUser("lotus0126@yahoo.cn", "", "Dear User:\nThis is test mail.\nPPARSystem\t"+DateTime.Now.ToLongDateString(),null);
            Label1.Text = "Sent successfully";
            }
            catch (Exception ex)
            {
                Label1.Text = ex.Message.ToString();
            }
        }
    }
}